package VUTHANHPHUC_HOMEWORK_OOP_LV2;

public class TriangleControllers {
	private Triangle objC;
	private TriangleModels objModel;

	public TriangleControllers(Triangle objC) {
		this.objC = objC;
		objModel = new TriangleModels();
	}

	public String toString() {
		return "Triangle: side1 = " + objC.getSide1() + " side2 = " + objC.getSide2() + " side3 = " + objC.getSide3();

	}

	public String Area() {
		return "Area Triangle: S = " + objModel.Area(objC);
	}

	public String Perimeter() {
		return "Perimeter Triangle: P = " + objModel.Perimeter(objC);
	}
}
